/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_attr_rela_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_ATTR_RELA_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_attr_rela_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_ATTR_RELA_HIS::CTable_PPM_ATTR_RELA_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_ATTR_RELA_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  ATTR_RELA_ID.setField( "ATTR_RELA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_RELA_ID );
  RELATED_ATTR_CD.setField( "RELATED_ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( RELATED_ATTR_CD );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  ATTR_RELA_TYPE_CD.setField( "ATTR_RELA_TYPE_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_RELA_TYPE_CD );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_ATTR_RELA_HIS::CTable_PPM_ATTR_RELA_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_ATTR_RELA_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  ATTR_RELA_ID.setField( "ATTR_RELA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_RELA_ID );
  RELATED_ATTR_CD.setField( "RELATED_ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( RELATED_ATTR_CD );
  ATTR_CD.setField( "ATTR_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_CD );
  ATTR_RELA_TYPE_CD.setField( "ATTR_RELA_TYPE_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_RELA_TYPE_CD );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_ATTR_RELA_HIS::~CTable_PPM_ATTR_RELA_HIS( )
{
    close();
}

